package com.lagou.demo.rpc;

import com.lagou.demo.SimpleOrderManager;
import com.lagou.demo.api.EmailServiceApi;
import org.apache.dubbo.config.annotation.Service;
import org.springframework.beans.factory.annotation.Autowired;

@Service
public class EmailRpcService implements EmailServiceApi {

    @Autowired
    private SimpleOrderManager simpleOrderManager ;

    @Override
    public Boolean sendEmail(String sendTo, String content) {
        return simpleOrderManager.sendEmail(sendTo, content);
    }

}
